package com.vincent.sciinfo.mapper;

import com.vincent.sciinfo.pojo.Meeting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MeetingMapper {

    List<Meeting> selectAll();

    int insertOne(Meeting meeting);

    @Select("select* from meeting where meetingname = #{meetingname}")
    Meeting selectOneByName(String meetingname);


    @Select("select* from meeting where meetingid = #{meetingid}")
    Meeting selectOneById(@Param("meetingid") Integer meetingid);
}
